package Exercise;

import java.util.HashMap;
import java.util.Set;

public class exercise5 {
	public static void main(String[] args) {
		int[] s1 = {1,2,3};
		int[] s2 = {3,4,5,2};
		HashMap<Integer,Integer> map = new HashMap<>();
		for(int i:s1){		
				map.put(i, 1);
		}
		for(int i:s2){
			if(!map.containsKey(i)){
				map.put(i, 1);
			}else{
				map.remove(i);
			}
		}
		Set<Integer> keySet = map.keySet();
		System.out.print("[");
		keySet.forEach(i->{
			System.out.print(i+" ");
		});
		System.out.println("]");
	}
}
